home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / DYN401.ZIP / b32.dm < prev    next >
Text File  |  1997-04-15  |  4KB  |  182 lines

  1.  
  2. # DMAKE makefile for Borland C 32 bit
  3.  
  4. DPP = ..\bin\dpp
  5.  
  6. DPPOPTS = -C $(STRAT)
  7.  
  8.  
  9. all : # setup.dos
  10. %@[
  11.     @echo off
  12.  
  13.     cd kernel
  14.     echo Entering kernel
  15.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  16.     if errorlevel 1 goto done
  17.  
  18.     cd ..\class
  19.     echo Entering class
  20.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  21.     if errorlevel 1 goto done
  22.  
  23.     cd ..\threads
  24.     echo Entering threads
  25.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  26.     if errorlevel 1 goto done
  27.  
  28.     cd ..\dpp
  29.     echo Entering dpp
  30.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) install
  31.     if errorlevel 1 goto done
  32.  
  33.     cd ..\generics
  34.     echo Entering generics
  35.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  36.     if errorlevel 1 goto done
  37.  
  38. :done
  39.     cd ..
  40. ]
  41.  
  42. all-scratch : # setup.dos
  43. %@[
  44.     @echo off
  45.  
  46.     md lib
  47.  
  48.     cd kernel
  49.     echo Entering kernel
  50.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) NEW=1
  51.     if errorlevel 1 goto done
  52.  
  53.     cd ..\class
  54.     echo Entering class
  55.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  56.     if errorlevel 1 goto done
  57.  
  58.     cd ..\threads
  59.     echo Entering threads
  60.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  61.     if errorlevel 1 goto done
  62.  
  63.     cd ..\dpp
  64.     echo Entering dpp
  65.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) install
  66.     if errorlevel 1 goto done
  67.  
  68.     cd ..\generics
  69.     echo Entering generics
  70.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  71.     if errorlevel 1 goto done
  72.  
  73. :done
  74.     cd ..
  75. ]
  76.  
  77. clean : 
  78. %@[
  79.     @echo off
  80.  
  81.     cd kernel
  82.     echo Entering kernel
  83.     $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  84.  
  85.     cd ..\class
  86.     echo Entering class
  87.     $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  88.  
  89.     cd ..\threads
  90.     echo Entering threads
  91.     $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  92.  
  93.     cd ..\generics
  94.     echo Entering generics
  95.     $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  96.  
  97.     cd ..\dpp
  98.     echo Entering dpp
  99.     $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  100.  
  101.     cd ..\examples\setup
  102.     echo Entering examples (takes a while - please wait)
  103.     call cleanall.bat
  104.  
  105.     cd ..\..
  106.     bin\rm -zq setup.unx setup.dos *.~ *.?~ *.??~ #*.* *.{*
  107. ]
  108.  
  109. realclean : clean
  110.     bin\rm -zq lib\d*.* bin\dpp bin\dpp.exe include\wingens.h include\odbcgens.h
  111.     bin\rm -zq bin\addcr bin\addcr.exe bin\delcr bin\delcr.exe lib\d*.*
  112.  
  113. dist:
  114.     bin\rm -zq dynace*.zip
  115.     zip -r dynace README m32.dm makefile.unx makefile.inc change.log
  116.     zip dynace bin\*.* class\*.* docs\*.* dpp\*.* generics\*.* lib\*.*
  117.     zip dynace include\*.* kernel\*.* threads\*.* utils\*.* windows\*.* odbc\*.*
  118.     zip -r dynace examples\list examples\exam* examples\setup
  119.     zip -r dynace winexam\list winexam\exam* winexam\setup
  120.  
  121.  
  122.     
  123.  
  124. makegens:
  125. %@[
  126.     @echo off
  127.  
  128.     cd kernel
  129.     ..\bin\rm -zq generics.* 
  130.     $(DPP) $(DPPOPTS) -h -i -s *.d
  131.     if errorlevel 1 goto done
  132.     ..\bin\mv generics.h ../include
  133.  
  134.     cd ..\class
  135.     $(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d
  136.     if errorlevel 1 goto done
  137.     ..\bin\mv generics.h ../include
  138.  
  139.     cd ..\threads
  140.     $(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d
  141.     if errorlevel 1 goto done
  142.     ..\bin\mv generics.h ../include
  143.  
  144. :done
  145.     cd ..
  146. ]
  147.  
  148.  
  149.  
  150.  
  151. newgens : 
  152. %@[
  153.     @echo off
  154.  
  155.     bin\rm include\generics.h
  156.  
  157.     cd kernel
  158.     echo Entering kernel
  159.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) reallynewgens
  160.     if errorlevel 1 goto done
  161.  
  162.     cd ..\class
  163.     echo Entering class
  164.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  165.     if errorlevel 1 goto done
  166.  
  167.     cd ..\threads
  168.     echo Entering threads
  169.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  170.     if errorlevel 1 goto done
  171.  
  172.     cd ..\dpp
  173.     echo Entering dpp
  174.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  175.     if errorlevel 1 goto done
  176.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) generics.c
  177.     if errorlevel 1 goto done
  178.  
  179. :done
  180.     cd ..
  181. ]
  182.